package com.ssl.security.constants;

import com.ssl.security.exception.SecurityException;

/**
 * 描述：
 * @link https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#KeyStore
 *
 * @author ssl
 * @create 2021/3/19 0019.
 */
public enum CertFactoryTypeEnum {
    // X.509中定义的证书类型，也可通过RFC 3280获得
    x509,
    ;

    public String getValue() throws SecurityException {
        switch (this) {
            case x509:
                return "X.509";
            default:
                throw new SecurityException("不支持的 certificateFactory 类型。");
        }
    }
}
